package model

import "gorm.io/gorm"

type DramaRecord struct {
	gorm.Model
	VideoId   int `gorm:"column:video_id;type:bigint;comment:''''视频id'''';not null;" json:"video_id"`
	EpisodeId int `gorm:"column:episode_id;type:bigint;comment:''''剧集id'''';not null;" json:"episode_id"`
	Duration  int `gorm:"column:duration;type:bigint;comment:''''时长'''';not null;default:0;" json:"duration"`      // ''''时长''''
	PlayCount int `gorm:"column:play_count;type:bigint;comment:''''播放量'''';not null;default:0;" json:"play_count"` // ''''播放量''''
	Collect   int `gorm:"column:collect;type:bigint;comment:''''收藏'''';not null;default:0;" json:"collect"`
}

func (dr *DramaRecord) TableName() string {
	return "drama_record"
}
